package com.sxbbc.common.core.entity.jz;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 运费明细配置表
 * </p>
 *
 * @author leehao
 * @since 2019-05-31
 */
public class BExpDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 运费模板id
     */
    private Integer expid;

    /**
     * 首件(件/KG)
     */
    private BigDecimal beginNum;

    /**
     * 运费
     */
    private BigDecimal beginMoney;

    /**
     * 续件(件/KG)
     */
    private BigDecimal addNum;

    /**
     * 续费 金额可以为负数 表示每增加多少件/重量减少多少运费
     */
    private BigDecimal addMoney;

    /**
     * 省份id多选，逗号分隔 必传
     */
    private String proid;

    /**
     * 城市id多选，逗号分隔 可以为空
     */
    private String cityid;

    /**
     * 区域id多选，逗号分隔 可以为空
     */
    private String areaid;

    /**
     * 1默认运费 0不是默认默认就是省市区不用传
     */
    private Integer defaultFlag;

    /**
     * 1同步满数量/重量，金额免邮要求   0不同步
     */
    private Integer type;

    private Date createTime;

    /**
     * 1有效 0无效 同步b_exp_config状态
     */
    private Integer status;

    /**
     * 页面编辑时处理
     */
    @TableField(exist = false)
    private String addressEdit;

    /**
     * 展示时候用
     */
    @TableField(exist = false)
    private String addressStr;

    public String getAddressStr() {
        return addressStr;
    }

    public void setAddressStr(String addressStr) {
        this.addressStr = addressStr;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getExpid() {
        return expid;
    }

    public void setExpid(Integer expid) {
        this.expid = expid;
    }

    public BigDecimal getBeginNum() {
        return beginNum;
    }

    public void setBeginNum(BigDecimal beginNum) {
        this.beginNum = beginNum;
    }

    public BigDecimal getBeginMoney() {
        return beginMoney;
    }

    public void setBeginMoney(BigDecimal beginMoney) {
        this.beginMoney = beginMoney;
    }
    public BigDecimal getAddNum() {
        return addNum;
    }

    public void setAddNum(BigDecimal addNum) {
        this.addNum = addNum;
    }
    public BigDecimal getAddMoney() {
        return addMoney;
    }

    public void setAddMoney(BigDecimal addMoney) {
        this.addMoney = addMoney;
    }
    public String getProid() {
        return proid;
    }

    public void setProid(String proid) {
        this.proid = proid;
    }
    public String getCityid() {
        return cityid;
    }

    public void setCityid(String cityid) {
        this.cityid = cityid;
    }
    public String getAreaid() {
        return areaid;
    }

    public void setAreaid(String areaid) {
        this.areaid = areaid;
    }
    public Integer getDefaultFlag() {
        return defaultFlag;
    }

    public void setDefaultFlag(Integer defaultFlag) {
        this.defaultFlag = defaultFlag;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getAddressEdit() {
        return addressEdit;
    }

    public void setAddressEdit(String addressEdit) {
        this.addressEdit = addressEdit;
    }

    @Override
    public String toString() {
        return "BExpDetail{" +
        "id=" + id +
        ", expid=" + expid +
        ", beginNum=" + beginNum +
        ", beginMoney=" + beginMoney +
        ", addNum=" + addNum +
        ", addMoney=" + addMoney +
        ", proid=" + proid +
        ", cityid=" + cityid +
        ", areaid=" + areaid +
        ", defaultFlag=" + defaultFlag +
        ", type=" + type +
        ", createTime=" + createTime +
        "}";
    }
}
